package com.cskaoyan.user.email;

import javax.mail.MessagingException;

/**
 * @Author Chen
 * @Date 2022-09-20  22-36-57
 * @description   发送邮件接口
 */
public interface IMailService {

    /**
     * @Author Chen
     * @Date 2022-09-20  22-37-13
     * @param
     * @return {@link null }
     * @description   发送普通邮件
     */
    void sendSimpleEmail(String receiver,String subject,String content);


    /**
     * @Author Chen
     * @Date 2022-09-20  22-37-28
     * @param
     * @return {@link null }
     * @description  发送Html邮件
     */
    void sendHtmlEmail(String receiver,String subject,String content) throws MessagingException;


    /**
     * @Author Chen
     * @Date 2022-09-20  22-37-53
     * @param
     * @return {@link null }
     * @description  发送带附件的邮件
     */
    void sendAttachmentEmail(String receiver,String subject,String content);
}
